/**
 * @author liubaohui
 * @desc 按钮权限
 * @param el
 * @param binding
 * @param vnode
 */
export default function btnPermission(el, binding, vnode) {
  let vm = vnode.context
  if (!vm.$store.state.buttonPermissions.includes(`${vm.$route.name}:${binding.value}`)) {
    el.parentNode.removeChild(el)
  }
}
